﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
using 坦克大战.Properties;

namespace 坦克大战
{
    class 游戏音效
    {
        private static SoundPlayer start = new SoundPlayer();
        private static SoundPlayer add = new SoundPlayer();
        private static SoundPlayer blast = new SoundPlayer();
        private static SoundPlayer hit = new SoundPlayer();
        private static SoundPlayer fire = new SoundPlayer();

        public static void 初始化声音()
        {
            
            start.Stream = Resources.start;
            add.Stream = Resources.add;
            blast.Stream = Resources.blast;
            hit.Stream = Resources.hit;
            fire.Stream = Resources.fire;

        }
        public static void  播放开始音效()
        {

            start.Play();
        }   public static void  播放add音效()
        {

            add.Play();
        }   public static void  播放爆炸音效()
        {

            blast.Play();
        }   public static void  播放hit音效()
        {
            
            hit.Play();
        }  public static void 播放fire音效()
        {
            
            fire.Play();
        }
    }
}
